//-
//- Copyright (c) Microsoft. All rights reserved.
//- Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-

extends ../body

block content
  h1 #{pendingRequest.org}/#{pendingRequest.repoName}
  if wasApproved
    p
      | Repo URL:&nbsp;
      a(href='https://github.com/' + pendingRequest.org + '/' + pendingRequest.repoName, target='_new') https://github.com/#{pendingRequest.org}/#{pendingRequest.repoName}
    p.lead.
      Your repo <strong>"#{pendingRequest.repoName}"</strong> has been created in the <strong>"#{pendingRequest.org}"</strong> organization successfully.
    if pendingRequest.repoVisibility == 'private'
      p.
        Since the new repo is private, you may receive a 404 if you yourself are
        not a member of one of the teams that you requested have access. Let
        github-admin@microsoft.com know if you need support.

    if results.length
      h3 Operations Performed
      ul
        each result in results
          li(style=result.error ? 'color:red' : undefined)= result.message
  else
    p Unfortunately your request was not approved at this time. Your request has been closed.

    if decisionNote
      h2 Message from decision maker
      table(style='width:80%')
        tbody
          tr
            td
              p.lead= decisionNote
    h2 Decision maker
    p
      = decisionBy
      br
      = decisionEmail
    if pendingRequest.justification
      h2 Your request
      table(style='width:80%')
        tbody
          tr
            td
              p= pendingRequest.justification
